#include "TypeInfo_decl.h"
#include "ImageExtensionHelper.h"

// Crytek specific image extensions
//
// usually added to the end of DDS files


STRUCT_INFO_BEGIN(CImageExtensionHelper::DDS_PIXELFORMAT)
	STRUCT_VAR_INFO(dwSize, TYPE_INFO(DWORD))
	STRUCT_VAR_INFO(dwFlags, TYPE_INFO(DWORD))
	STRUCT_VAR_INFO(dwFourCC, TYPE_INFO(DWORD))
	STRUCT_VAR_INFO(dwRGBBitCount, TYPE_INFO(DWORD))
	STRUCT_VAR_INFO(dwRBitMask, TYPE_INFO(DWORD))
	STRUCT_VAR_INFO(dwGBitMask, TYPE_INFO(DWORD))
	STRUCT_VAR_INFO(dwBBitMask, TYPE_INFO(DWORD))
	STRUCT_VAR_INFO(dwABitMask, TYPE_INFO(DWORD))
STRUCT_INFO_END(CImageExtensionHelper::DDS_PIXELFORMAT)

STRUCT_INFO_BEGIN(CImageExtensionHelper::DDS_HEADER)
	STRUCT_VAR_INFO(dwSize, TYPE_INFO(DWORD))
	STRUCT_VAR_INFO(dwHeaderFlags, TYPE_INFO(DWORD))
	STRUCT_VAR_INFO(dwHeight, TYPE_INFO(DWORD))
	STRUCT_VAR_INFO(dwWidth, TYPE_INFO(DWORD))
	STRUCT_VAR_INFO(dwPitchOrLinearSize, TYPE_INFO(DWORD))
	STRUCT_VAR_INFO(dwDepth, TYPE_INFO(DWORD))
	STRUCT_VAR_INFO(dwMipMapCount, TYPE_INFO(DWORD))
	STRUCT_VAR_INFO(dwAlphaBitDepth, TYPE_INFO(DWORD))
	STRUCT_VAR_INFO(dwReserved1, TYPE_ARRAY(10, TYPE_INFO(DWORD)))
	STRUCT_VAR_INFO(ddspf, TYPE_INFO(CImageExtensionHelper::DDS_PIXELFORMAT))
	STRUCT_VAR_INFO(dwSurfaceFlags, TYPE_INFO(DWORD))
	STRUCT_VAR_INFO(dwCubemapFlags, TYPE_INFO(DWORD))
	STRUCT_VAR_INFO(dwReserved2, TYPE_ARRAY(2, TYPE_INFO(DWORD)))
	STRUCT_VAR_INFO(dwTextureStage, TYPE_INFO(DWORD))
STRUCT_INFO_END(CImageExtensionHelper::DDS_HEADER)

STRUCT_INFO_BEGIN(CImageExtensionHelper::DDS_FILE_DESC)
	STRUCT_VAR_INFO(dwMagic, TYPE_INFO(DWORD))
	STRUCT_VAR_INFO(header, TYPE_INFO(CImageExtensionHelper::DDS_HEADER))
STRUCT_INFO_END(CImageExtensionHelper::DDS_FILE_DESC)
